# Copyright 2006-2007 Arcon Group
# Distributed under the terms of the GNU General Public License v2
# $Id: smplayer-0.5.41.ebuild $

inherit qt4

DESCRIPTION="A great Qt mplayer front-end"
HOMEPAGE="http://smplayer.sourceforge.net/"
SRC_URI="mirror://sourceforge/smplayer/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""

DEPEND="( $(qt4_min_version 4.2.0) ) 
	media-video/mplayer"
RDEPEND="${DEPEND}"


src_compile() {
	emake 	PREFIX=\\\"/usr\\\" \
		CONF_PATH=\\\"/etc/${PN}\\\" \
		DATA_PATH=\\\"/usr/share/${PN}\\\" \
		TRANSLATION_PATH=\\\"/usr/share/${PN}/translations\\\" \
		DOC_PATH=\\\"/usr/share/doc/${P}\\\" || die "emake failed"
}

src_install() {

	einstall PREFIX="${D}/usr" \
		DOC_PATH="${D}/usr/share/doc/${P}" \
		CONF_PREFIX="${D}" || die "Failed to install smplayer"
	dodoc Changelog
}
